Conversation
The Laravel mail configuration defines a global from address by default, see https://github.com/laravel/laravel/blob/0993d09dc8206d0933628074036427344be16fc5/config/mail.php#L100-L114. Thus, I think it is unnecessary and redundant to force users of this package to repeat this setting specifically for the `microsoft-graph` mailer.
|
@geisi Could you take a look? Removing the requirement for an extra |
|
Thanks for submitting this PR! I understand the goal of reducing redundancy by relying on global mail.from setting, I can't merge this change. Removing this configuration requirement, even if falling back to the global default, is a breaking change. It would break setups for existing users who have configured the from address specifically for this mailer as currently required. We need to maintain backward compatibility within the current version line. We might revisit this as an optional setting in a future major version, but we must keep the explicit configuration for now. Thanks again for your contribution and understanding! |
|
I don't see how removing the requirement for explicit configuration is a breaking change. Overriding the global default is still possible, just not necessary anymore. I only removed a single line of productive code that checks for the existence of the explicit setting, not any code that would use it. Should I make it more apparent by adding an explicit test to show how |
The Laravel mail configuration defines a global from address by default, see https://github.com/laravel/laravel/blob/0993d09dc8206d0933628074036427344be16fc5/config/mail.php#L100-L114. Thus, I think it is unnecessary and redundant to force users of this package to repeat this setting specifically for the
microsoft-graphmailer.